package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author WEN
 * @Date 2023/11/13 0013
 **/
@Data
@ApiModel("知识库分类对象")
public class KnowledgeTypeVo {

    @ApiModelProperty(value = "知识库分类ID，新增不必传，修改必传")
    private Long id;

    @NotBlank(message = "知识库分类名称不能为空")
    @Length(max = 20, message = "知识库分类名称长度限制 20 个字符")
    @ApiModelProperty(value = "知识库分类名称", required = true)
    private String name;

    @NotNull(message = "知识库分类状态不能为空")
    @ApiModelProperty(value = "知识库分类状态：false-启用，true-禁用", required = true, example = "false")
    private Boolean status;
}
